branchrust_reboot/main/Attack Helicoptercancel
316 Commits over 243 Days - 0.05cph!
PlayerInput ApplyViewAngles mounted code refactor/cleanup
Turret aiming working (though a bit clunky)
Gunner view can look around - kind of. Needs some fixes
Better system for gunner view inputs. Pass through to the vehicle but override the dismount press
Gunner UI interaction tweaks
Fixed [editor-only] auto-hover key press not always being detected
Improved system for the attack heli gunner cam:
- Removed the heli's secondary camera entirely.
- Moved the heli cam's post-processing to the main cam as an effect layer.
- When gunner uses the monitor, simply move the player's eye position to the position of the gun cam and enable the effect.
Fixed BaseMountable EyePositionForPlayer ignoring any GetEyeOverride overrides
Remove some FormerlySerializedAs that are no longer needed
ParticleSystemContainer now optionally supports enabling/disabling lights as well. Gets the Attack Heli damage FX lights working as intended.
Set up camera rendering in fulllscreen UI. Set up aspect ratio etc for fullscreen UI. Added missing camera components for rendering water etc. Replaced gunner monitor rendertexture with static effect (so we don't have to run two cameras at once).
New attack heli blur rotor system, no longer hides the main rotor post
Monitor UI bugfix, get it showing up again
Show/hide the monitor appropriately
Switch all helicopters to use a client tick that only runs while the heli is active, rather than using Update. Also some initial work on gunner screen UI interaction.
Merge Main -> Attack Helicopter
Don't show attack heli loot interactions when mounted
Merge Main -> Attack Helicopter
Clamp gun turret movement properly
Auto-hover more closely to the desired height
Remove gun cam on server side
Fix some server/client issues
Sync turret rotation to client, via save/load for initial sync the via RPC on when angle changes
Attack heli gun turret can now be fired by the gunner. Automatically reloads.
Gun item gets physically added to the heli turret
Fixed CH47 heli sharing a reserved flag with BaseVehicle code
Merge Main -> Attack Helicopter
Attack heli has turret storage interaction (for ammo and gun)
Added editor-only helicopter auto-hover, for testing passenger functions without a driver being necessary. Toggle while seated with Ctrl-H.
Fuel gauge and headlight improvements. Worked around a bug in Unity (see: https://forum.unity.com/threads/unityevent-cant-select-from-two-of-the-same-component.427454/#post-784098)
Instrument panel emissive turns on/off correctly
Let gunner also be driver again (just for testing)
Sort out entity flag toggles
Assign camera in the gun cam UI
Set up attack heli sounds
Hook up attack heli damaged fire sound
Fixed CH47 not having its dual ground effect points anymore
Removed unused sound components of BaseHelicopter
Fixed ground FX assignment on ch47.entity
Don't constantly call stop or play on helicopter ground FX
Adjust attack heli damage levels
Revert the new early-exit system in ParticleSystemContainer. Didn't work if the Play/Stop was called too early, resulting in it needing to be called again (but early exit prevented it).
Hooked up attack heli damage FX